package com.example.demo.service;

import com.example.demo.mapper.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author :蕉绿
 * @Date : 2023/2/18 14:36
 * @Version : V1.0
 * @Description :
 */

@Service
@ResponseBody
public class StudentService {

    @Bean
    public Student getStudent() {
        Student student = new Student();
        student.setName("宵宫");
        student.setId(99);
        return student;
    }
}
